//
//  ExpressDetailViewController.h
//  TengyunStation
//
//  Created by Johnny on 15/9/1.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import "BaseViewController.h"
#import "CustomButton.h"

@protocol ExpressDetailViewControllerDelegate <NSObject>

- (void)smsSendSuccess:(NSIndexPath *)indexPath;
- (void)takeExpressSuccess:(NSIndexPath *)indexPath;
@optional
- (void)updateExpress:(NSIndexPath *)indexPath Telephone:(NSString *)telephone Address:(NSString *)address Position:(NSString *)position;
- (void)updateExpress:(NSIndexPath *)indexPath Telephone:(NSString *)telephone Address:(NSString *)address;

@end

@interface ExpressDetailViewController : BaseViewController<UITableViewDataSource,UITableViewDelegate> {
    
    IBOutlet UIView *_zitiFooterView;
    IBOutlet UIView *_visitFooterView;
    
    __weak IBOutlet UILabel *_sendTimeLabel;
    __weak IBOutlet UILabel *_newSendTimeLabel;
    __weak IBOutlet CustomButton *sureBtn;
}

@property(nonatomic,strong)NSString *inwayExpressId;
@property(nonatomic,strong)NSIndexPath *indexPath;
@property(nonatomic,weak)id<ExpressDetailViewControllerDelegate>delegate;
@property (weak, nonatomic) IBOutlet UITableView *tableView;

- (IBAction)changeExpress:(id)sender;
- (IBAction)resetSendCode:(id)sender;
- (IBAction)sureReceiveExpress:(id)sender;

@end
